package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户健康状况实体类
 */
@Data
@TableName("user_health")
public class UserHealth {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer userId;
    
    private String healthCondition;
    
    private Integer calorieNeeds;
    
    private BigDecimal proteinNeeds;
    
    private BigDecimal fatNeeds;
    
    private BigDecimal carbsNeeds;
    
    private String vitaminNeeds;
    
    private String mineralNeeds;
    
    private BigDecimal waterIntake;
    
    private BigDecimal saltLimit;
    
    private BigDecimal sugarLimit;
    
    private String notes;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private User user;
} 